//package com.lonely.neo4jstudy.config;
//
//import org.neo4j.driver.v1.AuthTokens;
//import org.neo4j.driver.v1.Driver;
//import org.neo4j.driver.v1.GraphDatabase;
//import org.neo4j.driver.v1.Session;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;
//
///**
// * @date: 2022-01-04 14:39
// * @author: ztkj-hzb
// * @description: neo4j 配置
// **/
//@Configuration
//@EnableNeo4jRepositories
//public class Neo4jConfig {
//
//
//    @Value("${spring.data.neo4j.uri}")
//    private String url;
//
//    @Value("${spring.data.neo4j.username}")
//    private String username;
//
//    @Value("${spring.data.neo4j.password}")
//    private String password;
//
//
//    @Bean
//    public Session session() {
//        Driver driver = GraphDatabase.driver(url, AuthTokens.basic(username, password));
//        return driver.session();
//    }
//
//
//}
